$(document).ready(function() {
	$('.deleteCateg').click(function(){
		if (confirm('Sterge categorie ?')){
			window.location = "/admin/delcategory/id/" + $(this).attr('id');
		} else{
			return;
		}
	});
	$('.editCateg').click(function(){
		window.location = "/admin/editCategory/id/" + $(this).attr('id');
	});
	
	$('.deleteProduct').click(function(){
		if (confirm('Sterge produsul ?')){
			window.location = "/admin/delProduct/id/" + $(this).attr('id');
		} else{
			return;
		}
	});
	$('.editProduct').click(function(){
		window.location = "/admin/editProduct/id/" + $(this).attr('id');
	});
	$('.specs').click(function(){
		window.location = "/admin/editSpecs/id/" + $(this).attr('id');
	});
	$('.addSpec').click(function(){
		window.location = "/admin/addSpec/id/" + $(this).attr('id');
	});
	$('.changeSpec').click(function(){
		window.location = "/admin/changeSpec/id/" + $(this).attr('id');
	});
	$('.delSpec').click(function(){
		if (confirm('Sterge specificatie ?')){
			window.location = "/admin/delSpec/id/" + $(this).attr('id');
		} else{
			return;
		}
	});
	
	$('.deleteOffer').click(function(){
		if (confirm('Sterge oferta ?')){
			window.location = "/admin/delOffer/id/" + $(this).attr('id');
		} else{
			return;
		}
	});
	$('.editOffer').click(function(){
		window.location = "/admin/editOffer/id/" + $(this).attr('id');
	});
	
	$('.approveOrder').click(function(){
		window.location = "/admin/approveOrder/cart/" + $(this).attr('id');
	});
	
	$('.deleteUser').click(function(){
		if (confirm('Sterge utilizator ?')){
			window.location = "/admin/delUser/id/" + $(this).attr('id');
		} else{
			return;
		}
	});
});